<template>
  <el-form-item :label="i18nt('designer.setting.defaultValue')">
    <el-switch v-model="optionModel.defaultValue"
      @change="emitDefaultValueChange"
      :active-value="1"
      :inactive-value="0"
      active-text="是"
      inactive-text="否"></el-switch>
  </el-form-item>
</template>

<script>
import i18n from "@/utils/i18n"
import propertyMixin from "@/components/form-designer/setting-panel/property-editor/propertyMixin"

export default {
  name: "switch-defaultValue-editor",
  mixins: [i18n, propertyMixin],
  props: {
    designer: Object,
    selectedWidget: Object,
    optionModel: Object,
  },

}


</script>

<style scoped>
</style>
